home *** CD-ROM | disk | FTP | other *** search
/ Macworld Expo - Develope…Central & Net Innovations / Developer Central and Net Innovators (MacWorld Expo) (January 1999).iso / Developer Central / Bowers Development / Demo AppMaker / Examples / PowerPlant / Everything / DModelessTextData.h < prev    next >
Encoding:
Text File  |  1998-10-11  |  1.6 KB  |  71 lines  |  [TEXT/CWIE]

  1. // DModelessTextData -- data class for Everything
  2.  
  3. #pragma once
  4.  
  5. #include "AMDataDef.h"
  6.  
  7. class LFileStream;
  8.  
  9.  
  10. const long    idSmall3        = 'Sma3';
  11. const long    idLarge3        = 'Lar3';
  12. const long    idX12347        = 'X147';
  13. const long    idX12345e8        = 'X128';
  14. const long    idPassword3        = 'Pas3';
  15. const long    idDate3        = 'Dat3';
  16. const long    idTime3        = 'Tim3';
  17. const long    idStyled3        = 'Sty3';
  18.  
  19.  
  20. //----------
  21. class DModelessTextData : public AMDataDef {
  22. public:
  23.                 DModelessTextData ();
  24.     virtual        ~DModelessTextData ();
  25.  
  26. public:
  27.     void        CopyFrom        (DModelessTextData*        inOther);
  28.     void        ReadFromFile    (LFileStream*        inFile);
  29.     void        WriteToFile        (LFileStream*        inFile);
  30.  
  31. public:        // accessors
  32.     StringPtr    GetSmall3    (Str255        outStr = nil) const;
  33.     void        SetSmall3    (ConstStringPtr    inValue);
  34.     void        SetSmall3    (CharsHandle    inValue);
  35.  
  36.     StringPtr    GetLarge3    (Str255        outStr = nil) const;
  37.     void        SetLarge3    (ConstStringPtr    inValue);
  38.     void        SetLarge3    (CharsHandle    inValue);
  39.  
  40.     SInt32        GetX12347 () const;
  41.     void        SetX12347    (SInt32        inValue);
  42.  
  43.     double        GetX12345e8 () const;
  44.     void        SetX12345e8    (double        inValue);
  45.  
  46.     StringPtr    GetPassword3    (Str255        outStr = nil) const;
  47.     void        SetPassword3    (ConstStringPtr    inValue);
  48.     void        SetPassword3    (CharsHandle    inValue);
  49.  
  50.     LongDateRec        GetDate3 () const;
  51.     void        SetDate3    (LongDateRec        inValue);
  52.  
  53.     LongDateRec        GetTime3 () const;
  54.     void        SetTime3    (LongDateRec        inValue);
  55.  
  56.     StringPtr    GetStyled3    (Str255        outStr = nil) const;
  57.     void        SetStyled3    (ConstStringPtr    inValue);
  58.     void        SetStyled3    (CharsHandle    inValue);
  59.  
  60.  
  61. protected:
  62.     Str255        mSmall3;
  63.     Str255        mLarge3;
  64.     SInt32        mX12347;
  65.     double        mX12345e8;
  66.     Str255        mPassword3;
  67.     LongDateRec        mDate3;
  68.     LongDateRec        mTime3;
  69.     Str255        mStyled3;
  70. };
  71.